///引入共享头部
import '../../../common/shard.dart';

import '../../../widget/number_animation.dart';

class NumberAnimationPage extends StatelessWidget {
	const NumberAnimationPage({Key? key}) : super(key: key);

	@override
	Widget build(BuildContext context) {
		return CustomCupertinoScaffold(
			titleText: "数字动画",
			navBackgroundColor: Theme.of(context).primaryColor,
			body: Column(
				mainAxisAlignment: MainAxisAlignment.center,
				children: [
					const Text("默认："),
					NumberAnimation(
						start: 0,
						end: 520520,
					),
					SizedBox(height:20),
					const Text("任意样式："),
					NumberAnimation(
						start: 0,
						end: 520520,
						style: const TextStyle(fontSize: 24,color: Colors.pink),
					),
					SizedBox(height:20),
					const Text("不带小数点："),
					NumberAnimation(
						start: 0,
						end: 520520,
						decimalPoint: 0,
					),
					SizedBox(height:20),
					const Text("前缀后缀："),
					NumberAnimation(
						start: 0,
						end: 520520,
						before: "￥",
					),
					NumberAnimation(
						start: 0,
						end: 520520,
						after: "元",
					),
				],
			),
		);
	}
}
